/*
   File: ValidateTokenRequestDto.java
   Copyright 2004-2010 99Bill Corporation. All rights reserved.
   Created at   2011-8-30
   Author       zhe.yang
   Changed at   2011-8-30
 */

package com.bill99.golden.inf.sso.mdp.dto;

import java.io.Serializable;

/**
 * 验证Token的请求DTO
 */
public class ValidateTokenRequestDto implements Serializable {
	private static final long serialVersionUID = 5987194580100937201L;
	/**
	 * 应用代码
	 */
	private String appCode;

	/**
	 * 访问URL
	 */
	private String visitUrl;

	/**
	 * 是否需要验证权限
	 */
	private boolean validatePrivilege = false;

	/**
	 * 令牌
	 */
	private String token;

	/**
	 * 用户的IP
	 */
	private String userIp;
	/**
	 * 用户浏览器类型
	 */
	private String explorerType;

	/**
	 * @return the appCode
	 */
	public String getAppCode() {
		return appCode;
	}

	/**
	 * @param appCode
	 *            the appCode to set
	 */
	public void setAppCode(String appCode) {
		this.appCode = appCode;
	}

	/**
	 * @return the userIp
	 */
	public String getUserIp() {
		return userIp;
	}

	/**
	 * @param userIp
	 *            the userIp to set
	 */
	public void setUserIp(String userIp) {
		this.userIp = userIp;
	}

	/**
	 * @return the explorerType
	 */
	public String getExplorerType() {
		return explorerType;
	}

	/**
	 * @param explorerType
	 *            the explorerType to set
	 */
	public void setExplorerType(String explorerType) {
		this.explorerType = explorerType;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getVisitUrl() {
		return visitUrl;
	}

	public void setVisitUrl(String visitUrl) {
		this.visitUrl = visitUrl;
	}

	public boolean isValidatePrivilege() {
		return validatePrivilege;
	}

	public void setValidatePrivilege(boolean validatePrivilege) {
		this.validatePrivilege = validatePrivilege;
	}

	@Override
	public String toString() {
		return "ValidateTokenRequestDto [appCode=" + appCode + ", visitUrl="
				+ visitUrl + ", validatePrivilege=" + validatePrivilege
				+ ", token=" + token + ", userIp=" + userIp + ", explorerType="
				+ explorerType + "]";
	}

}
